import request from '@/utils/request';

// 搜索Twitter推文
export function searchTweets(params: any) {
  return request({
    url: '/web3/twitter/search',
    method: 'get',
    params: params
  });
}

// 获取缓存的Twitter推文数据
export function getCachedTweets(params: any) {
  return request({
    url: '/web3/twitter/cached',
    method: 'get',
    params: params
  });
}

// 搜索Twitter推文(返回JSON格式)
export function searchTweetsAsJson(params: any) {
  return request({
    url: '/web3/twitter/search/json',
    method: 'get',
    params: params
  });
}

// 获取推荐关注的Twitter用户
export function getRecommendedUsers() {
  return request({
    url: '/web3/twitter/recommended-users',
    method: 'get'
  });
}